﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TRINHTUNGLAM.OOP
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Students sinhvien = new Students();
            sinhvien._Masv1 = txtmasv.Text;
            sinhvien._Hoten = txthoten.Text;
            sinhvien._Email = txtemail.Text;
            sinhvien._Phone = txtphone.Text;
            listBox1.Items.Add(sinhvien._Masv1);
            listBox1.Items.Add(sinhvien._Hoten);
            listBox1.Items.Add(sinhvien._Email);
            listBox1.Items.Add(sinhvien._Phone);
        }
    }
}
